module.exports = (sequelize, DataTypes) => {
  const translation = sequelize.define('translation', {
    zh_CN: DataTypes.STRING,
    // goodId
    // userId
  })

  translation.associate = (models) => {
    translation.belongsTo(models.good, {
      foreignKey: 'goodId',
      targergetKey: 'id',
      as: 'good'
    })
    // comment.belongTo(models.manager, {
    //   foreignKey: 'managerId',
    //   targergetKey: 'managerId',
    //   as: 'manager'
    // })
  }
  return translation
}
